<html>
<head>
    <link rel="shortcut icon" href="#"/>
    <meta charset="utf-8">
</head>

<body>
<h1>小夜灯</h1>
<form action="/v1/switch1/on" method="POST" target="myIframe">
    <input type="submit" value="打开" style="width:200px; height:150px;">
</form>
<form action="/v1/switch1/off" method="POST" target="myIframe">
    <input type="submit" value="关闭" style="width:200px; height:150px;">
</form>
<iframe id="myIframe" name="myIframe" style="width:2px; height:1px;"></iframe>
</body>
</html>